﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace SachOnlineLibrary.Public
{
    public class NhaXuatBan
    {
        private int maNXB;

        public int MaNXB
        {
            get { return maNXB; }
            set { maNXB = value; }
        }
        private string tenNXB;

        public string TenNXB
        {
            get { return tenNXB; }
            set { tenNXB = value; }
        }
        private string sDT;

        public string SDT
        {
            get { return sDT; }
            set { sDT = value; }
        }
        private string email;

        public string Email
        {
            get { return email; }
            set { email = value; }
        }
        private string diaChi;

        public string DiaChi
        {
            get { return diaChi; }
            set { diaChi = value; }
        }
        public void ChuyenDoi(DataRow dr)
        {
            MaNXB = int.Parse(dr[0].ToString());
            TenNXB = dr[1].ToString();
            SDT = dr[2].ToString();
            Email = dr[3].ToString();
            DiaChi = dr[4].ToString();
        }
    }
}
